import store from '../index.js'
export default {
    state: {
        user:[]
    },
    mutations: {
        UpdateUser(state,data){
            uni.setStorageSync("users",JSON.stringify(data))
            state.user = JSON.parse(uni.getStorageSync("users"))
        }
    },
    actions: {
       ajaxUser({commit},data){
        commit('UpdateUser',data)
       }
    },
    getters: {
        
}

}
